package com.leyou.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.item.entiey.Spu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface SpuMapper extends BaseMapper<Spu> {
    //根据商品id 修改是否上架
    @Update("update tb_spu set saleable = #{saleable} where id = #{id}")
    Boolean goodsIsSaleable(@Param("id")Long id,@Param("saleable") Boolean saleable);
}